powered by
generatefolds(target, nfolds = 10, stratified = TRUE, seed = FALSE)
cv.ses
a <- generatefolds(iris[, 5], nfolds = 5, stratified = TRUE) table(iris[a[[1]], 5]) ## 10 values from each group
Run the code above in your browser using DataLab